print("输入quit表示选手票数录入完毕")

plays = {}

while(True):
    name = input("请输入选手名称:")
    if name == 'quit':
        break
    vote = input("请输入选手票数:")
    plays[name] = vote

len = len(plays)
sorted_dict = dict(sorted(plays.items(), key=lambda item: item[1], reverse=True))


for i , (name,vote) in enumerate(sorted_dict.items()):
    print(f"第{i+1}名:{name},成绩为{vote}分")
